import { getDatalabList,
    searchData,
    getDataDetail,
    hasVoted,
    toggleVote,
    getDataDesc,
    getDataFile,
    getNotebookUrl,
    getDirlist
    } from '../../api/datalab'

export default {
    state:{

    },
    mutations:{

    },
    actions:{
        XgetDatalabList(context,params){
            return getDatalabList(params)
        },
        XsearchData(context,params){
            return searchData(params)
        },
        XgetDataDetail(context,params){
            return getDataDetail(params)
        },
        XhasVoted(context,params){
            return hasVoted(params)
        },
        XtoggleVote(context,params){
            return toggleVote(params)
        },
        XgetDataDesc(context,params){
            return getDataDesc(params)
        },
        XgetDataFile(context,params){
            return getDataFile(params)
        },
        XgetNotebookUrl(context,params){
            return getNotebookUrl(params)
        },
        XgetDirlist(context,params){
            return getDirlist(params)
        },
    }
}